/**
 * Copyright 2010  Pavel Nemec <nemecp4@gmail.com> <br>
 * <br>
 * License - GPLv3<br>
 *<br>
 * This program is free software; you can redistribute it and/or modify<br>
 * it under the terms of the GNU General Public License as published by<br>
 * the Free Software Foundation; either version 3 of the License, or<br>
 * (at your option) any later version.<br>
 *<br>
 * This program is distributed in the hope that it will be useful,<br>
 * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>
 * GNU General Public License for more details.<br>
 *<br>
 * You should have received a copy of the GNU General Public License<br>
 * along with this program. If not, see <http://www.gnu.org/licenses/>.<br>
 *<br>
 */
package eu.whowie.jast.remote;

import java.io.Serializable;

/**
 * Class holding information about one singe Yast Module
 * 
 * @author Pavel Nemec
 * 
 */
public class YastModule implements Serializable {
	private String name;
	private String icon;
	private String exec;
	private String desc;

	public YastModule(String name, String icon, String exec) {
		this.name = name;
		this.icon = icon;
		this.exec = exec;
	}

	public YastModule() {
		// TODO Auto-generated constructor stub
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	@Override
	public String toString() {
		if (this.desc == null)
			this.desc = "YastModule - name: " + name + ", exec: " + exec
					+ ", icon: " + icon;
		return desc;
	}

}
